package org.hackystat.devcathlon.ui.page.register;

import org.apache.wicket.ResourceReference;
import org.apache.wicket.behavior.HeaderContributor;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.image.Image;
import org.hackystat.devcathlon.ui.page.commons.panels.clock.ClockPanel;
import org.hackystat.devcathlon.ui.page.login.LoginPage;

/**
 * Register Account Page. 
 * Contains a basic user-profile registration form.
 * 
 * @author Anthony Du
 *
 */
public class RegisterAcctPage extends WebPage {
  /** Support serialization. */
  private static final long serialVersionUID = 1L;
  
  /**
   * Account Registration page.
   */
  public RegisterAcctPage() {
    add(HeaderContributor.forCss(org.hackystat.devcathlon.ui.Start.class, 
        "page/style/boilerplate/screen.css", "screen"));
    add(HeaderContributor.forCss(org.hackystat.devcathlon.ui.Start.class, 
        "page/style/boilerplate/print.css", "print"));
    add(new Label("title", "Devcathlon - Account Registration"));
    // Header logo
    add(new Image("logo",
        new ResourceReference(LoginPage.class, "devcathlon-header-logo.png")));
    // Register account form
    add(new AccountForm("acctForm"));
    // Current clock
    add(new ClockPanel("clockPanel"));
  }
}
